<?php
/**
 * @Author: rocky
 * @Copyright: 广州拓冠科技 <http://my8m.com>
 * Date: 2019/7/12
 * Time: 18:00
 */


namespace app\common\exception;


use think\Exception;

class ErrorException extends Exception
{
    //http状态吗
    public $code;
    //错误提示信息
    public $msg;
    //错误代码
    public $errCode;
    public function __construct($err_code, $status_code = 400,$err_msg = '')
    {
        $this->errCode = $err_code;
        $this->code = $status_code;
        if(!empty($err_msg)){
            $this->msg = $err_msg;
        }
    }
}